<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>picker</title>
    <link rel="stylesheet" href="./src/style.css">
</head>

<body>
    <div class="picker" id="pk01" style="width:100px;float:left;"></div>
    <div class="picker" id="pk02" style="width:100px;float:left;"></div>
    <div class="picker" id="pk03" style="width:100px;float:left;"></div>
    <script src="./src/picker.js"></script>
    <script>
        let list = []
        for (let index = 1; index <= 30; index++) {
            list.push({
                title: index+'日',
                value: index
            })
        }
        Picker({
            el: '#pk01',
            value:10,
            list,
            done:function(currValue){
                console.log('currValue', currValue)
            }
        })
        Picker({
            el: '#pk02',
            value:3,
            list,
            done:function(currValue){
                console.log('currValue', currValue)
            }
        })
        Picker({
            el: '#pk03',
            value:3,
            list,
            done:function(currValue){
                console.log('currValue', currValue)
            }
        })
    </script>
</body>

</html>
